package com.weimob.docker.controller;

import com.weimob.docker.entities.User;
import com.weimob.docker.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: xh-learn-record
 * @description:
 * @author: sch
 * @create: 2022-12-09 23:04
 **/
@RestController
@RequestMapping("docker/mysql")
public class MysqlController {
    @Autowired
    private UserMapper userMappper;


    /**
     * 查询所有用户信息
     */
    @RequestMapping("/selectByPrimaryKey")
    public User selectUserList(Integer id) {
        User user_01 = userMappper.selectByPrimaryKey(id);
        return user_01;
    }
}
